package com.dongqi.myblog.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dongqi.myblog.po.TComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dongqi
 * @since 2020-08-03
 */
public interface TCommentMapper extends BaseMapper<TComment> {

    /**
     * 根据blog_id获取该blog下的所有评论
     */
    List<TComment> getComments(Page<TComment> page,@Param(Constants.WRAPPER)Wrapper wrapper);

}
